package org.mashart.pink.m.gps.data;

import org.mashart.pink.m.gps.Waypoint;

/**
 * Interface that every GPS data collector should implement
 * @see AbstractParser
 * @see NMEAParser
 */
public interface Talker {

    /**
     * Given GPS data (string) calculate the Waypoint
     *
     * @return caculated Lat & Lng
     */
    public Waypoint parse(String sentence);

    /**
     * true - data are within a know format to the parser
     */
    public boolean isValid(String sentence);
}
